-- drop function if exists sm_rdd.fv_get_lambda_code(text);
create or replace function sm_rdd.fv_get_lambda_code
(
  i_lambda_text   text
)
returns text
as
$$
-- declare

begin
  return (regexp_matches(i_lambda_text, '(?<=\-\>)(.*)'))[1];
end
$$
language plpgsql volatile
cost 100;

-- select sm_rdd.fv_get_lambda_code('x text[], y int -> (select sum(length(t)) from unnest(x) t limit y)')